package com.cti.ftpservice.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.springframework.context.annotation.Configuration;

public  class WsPropertiesLoadUtil {

	    public static String url = ""; 
	    public static String email = ""; 
	    public static String password = ""; 
	    public static String fileSavePathRoot="";
	    public static String ftpDownloadFileSaveXmlPathRoot="";
	    public static String ftpservicesystemIndex="";
	    static{
	    	try {
		    	 Properties prop =  new  Properties();  
			     InputStream in = WsPropertiesLoadUtil.class.getClassLoader().getResourceAsStream("wsConfig.properties");
			     prop.load(in);
			     email=prop.getProperty("email").trim();  
			     password=prop.getProperty("password").trim();  
		         url=prop.getProperty("url").trim(); 
		         ftpservicesystemIndex=prop.getProperty("ftpservicesystemIndex").trim();
		         fileSavePathRoot=prop.getProperty("fileSavePathRoot").trim();
		         ftpDownloadFileSaveXmlPathRoot= System.getProperty("user.dir")+prop.getProperty("ftpDownloadFileSaveXmlPathRoot").trim();
			} catch (IOException e) {
				e.printStackTrace();
			}  
	    }
	   
}
